<template>
    <div class="navigationBar back">
      <div class="left" @click="goback">
        <span class="iconfont">&#xe624;</span>
      </div>
      <div class="title">{{title}}</div>
      <div class="right"></div>
    </div>
</template>

<script>
    export default {
      name: "Header.vue",
      props:["title"],
      methods: {
        goback() {
          this.$router.go(-1)
        }
      }
    }
</script>

<style lang="stylus" scoped>
  @import "../css/common.styl"
  .back{
    background-color :$MainColor
  }
  .left{
    float: left;
  }
  .title{
    flex :1;
    margin :0 5px;
  }
  .right{
    float: right;
  }
</style>
